package com.cloud.wyf.Util;

import com.auth0.jwt.JWT;
import com.auth0.jwt.interfaces.DecodedJWT;

import java.util.Date;

public class GetTokenUtil {

    public static final String signnature = "wuyanfeng";
    public static final long EXPIRE = 1000*60*60*24;//有效期一天

    public static String getInfoFromToken(String token,String str){
        DecodedJWT decode = JWT.decode(token);
        return decode.getClaim(str).asString();
    }
}
